package com.suse.lhw.hms.foodserver.service;

import com.suse.lhw.hms.foodserver.domin.FFoodmodel;
import com.suse.lhw.hms.foodserver.domin.FUnit;
import com.suse.lhw.hms.foodserver.pojo.input_POJO.ModelUnitAndIfo;
import com.suse.lhw.hms.foodserver.pojo.input_POJO.addAFoodModel;
import com.suse.lhw.hms.foodserver.pojo.input_POJO.addAFoodModel_unit;
import com.suse.lhw.hms.foodserver.pojo.input_POJO.modelAndUnits;
import com.suse.lhw.hms.foodserver.pojo.output_POJO.ofm_selectFoodIfoByModelId;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.service
 * @ClassName: FFoodmodelService
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/18 19:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/18 19:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface FFoodmodelService {

    public String addAFoodModel(addAFoodModel pojo, List<FUnit> list);

    int deleteByPrimaryKey(Integer fmId);

    int insert(FFoodmodel record);

    int insertSelective(FFoodmodel record);

    FFoodmodel selectByPrimaryKey(Integer fmId);

    int updateByPrimaryKeySelective(FFoodmodel record);

    int updateByPrimaryKey(FFoodmodel record);

    List<FFoodmodel> selectFFoodmodelsByStatus(int status);

    String deleteADefaultFoodModel(Integer foodmodelId);

    List<ofm_selectFoodIfoByModelId> selectAllModelByPackageId(int packageId);

    String addAUnuploadedFoodModel(addAFoodModel pojo, List<FUnit> list);

    List<modelAndUnits> selectByNameStatusUserid(String name, int status, String userId);

    ModelUnitAndIfo selectModelAndUnitsById(int id);
}






